gtk4.git
15 years agoUpdated Danish translation
Ask H. Larsen [Tue, 29 Mar 2011 21:39:16 +0000 (23:39 +0200)]
Updated Danish translation

15 years agoGtkStatusIcon: support fixed-sized icons
Ryan Lortie [Tue, 29 Mar 2011 18:14:21 +0000 (23:44 +0530)]
GtkStatusIcon: support fixed-sized icons

Use the _NET_SYSTEM_TRAY_ICON_SIZE property set by the tray mananger as
a hint that we should use a specific icon size.  This allows the tray to
instruct us that it expects 16x16 icons, for example.

Bug #645232

15 years agotheming: Implement non-uniform border-width in the theming engine.
Carlos Garnacho [Mon, 28 Mar 2011 22:59:49 +0000 (00:59 +0200)]
theming: Implement non-uniform border-width in the theming engine.

The border-width CSS parameter takes up to 4 values, but it was
being ignored by the theming engine until now.

15 years agotheming: Avoid boxed struct copies throughout the default engine
Carlos Garnacho [Mon, 28 Mar 2011 17:34:40 +0000 (19:34 +0200)]
theming: Avoid boxed struct copies throughout the default engine

15 years agolabel: Add another special case for measuring
Benjamin Otte [Tue, 29 Mar 2011 11:33:47 +0000 (13:33 +0200)]
label: Add another special case for measuring

15 years agolabel: Don't create the layout in size_allocate() if not needed
Benjamin Otte [Tue, 29 Mar 2011 11:24:34 +0000 (13:24 +0200)]
label: Don't create the layout in size_allocate() if not needed

Just update its size if it already exists.

15 years agolabel: Move ellipsized layout width computation
Benjamin Otte [Tue, 29 Mar 2011 11:21:48 +0000 (13:21 +0200)]
label: Move ellipsized layout width computation

... from size_allocate() to update_layout_width().

15 years agolabel: Factor out layout size measuring into its own function
Benjamin Otte [Tue, 29 Mar 2011 13:12:30 +0000 (15:12 +0200)]
label: Factor out layout size measuring into its own function

Instead of doing half of it in get_preferred_size() and the other half
in get_label_width(), put it all in one place.

15 years agolabel: Move function to a better location
Benjamin Otte [Tue, 29 Mar 2011 13:05:27 +0000 (15:05 +0200)]
label: Move function to a better location

This patch does not change anything, it just moves the get_label_width
function.

15 years agolabel: Factor out layout size setting into a separate function
Benjamin Otte [Tue, 29 Mar 2011 11:10:43 +0000 (13:10 +0200)]
label: Factor out layout size setting into a separate function

15 years agolabel: Only get font metrics if we have to
Benjamin Otte [Tue, 29 Mar 2011 01:31:09 +0000 (03:31 +0200)]
label: Only get font metrics if we have to

Getting these metrics is expensive, so avoid it if possible.

15 years agolabel: Add optimization for a common special case
Benjamin Otte [Tue, 29 Mar 2011 01:16:34 +0000 (03:16 +0200)]
label: Add optimization for a common special case

Oftentimes we want to measure a layout that is as wide or wider than the
current layout's maximal width. In that case we can safely reuse the
current layout.

15 years agolabel: Remove unused boolean argument from ensure_layout()
Benjamin Otte [Tue, 29 Mar 2011 00:53:28 +0000 (02:53 +0200)]
label: Remove unused boolean argument from ensure_layout()

It's always FALSE.

Note that this patch changes the layout for allocations that are
smaller than 1px, but that's just the default layout that is never
rendered.

15 years agolabel: Don't recreate the layout just for measuring
Benjamin Otte [Tue, 29 Mar 2011 00:49:19 +0000 (02:49 +0200)]
label: Don't recreate the layout just for measuring

Instead, create a custom one.

15 years agolabel: Add internal gtk_label_get_measuring_layout() and use it
Benjamin Otte [Tue, 29 Mar 2011 00:27:26 +0000 (02:27 +0200)]
label: Add internal gtk_label_get_measuring_layout() and use it

Avoids useless pango_layout_copy() calls and invalidations of an
existing layout when measuring sizes for a given label.

15 years agotests: Make test_init() not check for gdk-pixbuf anymore
Benjamin Otte [Tue, 29 Mar 2011 13:26:03 +0000 (15:26 +0200)]
tests: Make test_init() not check for gdk-pixbuf anymore

gdk-pixbuf is system-installed these days.

15 years agoprogressbar: remove needless is_drawable() check before queue_resize()
Benjamin Otte [Tue, 29 Mar 2011 11:55:06 +0000 (13:55 +0200)]
progressbar: remove needless is_drawable() check before queue_resize()

15 years agotracker: Include gdk.h
Benjamin Otte [Tue, 29 Mar 2011 00:27:16 +0000 (02:27 +0200)]
tracker: Include gdk.h

15 years agoUpdate Simplified Chinese po-properties translation.
Aron Xu [Tue, 29 Mar 2011 11:02:06 +0000 (11:02 +0000)]
Update Simplified Chinese po-properties translation.

15 years agoRevert "Update Simplified Chinese translation." it commits po-properties translations...
Aron Xu [Tue, 29 Mar 2011 10:52:13 +0000 (10:52 +0000)]
Revert "Update Simplified Chinese translation." it commits po-properties translations to po.

This reverts commit bd058d4ba36a166776c88cae9a2a541dae5decca.

15 years agoUpdate Simplified Chinese translation.
Aron Xu [Tue, 29 Mar 2011 10:48:33 +0000 (10:48 +0000)]
Update Simplified Chinese translation.

15 years agodocs: Update the drawing model description for GTK 3
Benjamin Otte [Mon, 28 Mar 2011 13:03:38 +0000 (14:03 +0100)]
docs: Update the drawing model description for GTK 3

https://bugzilla.gnome.org/show_bug.cgi?id=645937

15 years agodocs: Fixes for icon renaming
Benjamin Otte [Mon, 28 Mar 2011 21:54:00 +0000 (23:54 +0200)]
docs: Fixes for icon renaming

Fixes up breakage from 39d4207ab7ecedc0fce2e65478dbd5d152e23b65

15 years agoEnsure we always grab the gdk lock in async callbacks
Alexander Larsson [Fri, 25 Mar 2011 09:53:05 +0000 (10:53 +0100)]
Ensure we always grab the gdk lock in async callbacks

Async callbacks are delivered in idles, so we need to make sure
we get the gdk lock before calling any gdk/gtk stuff. This was
missing in a few places.

15 years agoAdded UG translation
Abduxukur Abdurixit [Sun, 27 Mar 2011 19:24:20 +0000 (21:24 +0200)]
Added UG translation

15 years agogtk: add "Since: 3.2" to gtk_widget_path_to_string()
Michael Natterer [Sun, 27 Mar 2011 13:43:31 +0000 (15:43 +0200)]
gtk: add "Since: 3.2" to gtk_widget_path_to_string()

15 years agoUpdated Russian translation
Yuri Kozlov [Sun, 27 Mar 2011 10:27:45 +0000 (14:27 +0400)]
Updated Russian translation

15 years agoRevert "Updated Russian translation"
Yuri Myasoedov [Sun, 27 Mar 2011 10:25:19 +0000 (14:25 +0400)]
Revert "Updated Russian translation"

This reverts commit e082ac5ab5cdb9d3fb16b5e69819b34ebb30fe6a.

15 years agoUpdated Russian translation
Yuri Kozlov [Sun, 27 Mar 2011 10:23:01 +0000 (14:23 +0400)]
Updated Russian translation

15 years agowidget: Only reemit style-set signal after gtk_widget_get_style()
Benjamin Otte [Sun, 27 Mar 2011 01:43:07 +0000 (03:43 +0200)]
widget: Only reemit style-set signal after gtk_widget_get_style()

If the widget does not care about the compat code, just ignore it.

15 years agowidget: Don't invalidate style context in its invalidate callback
Benjamin Otte [Sun, 27 Mar 2011 01:39:43 +0000 (03:39 +0200)]
widget: Don't invalidate style context in its invalidate callback

15 years agowidget: Update path unconditionally in gtk_widget_reset_style()
Benjamin Otte [Sun, 27 Mar 2011 00:53:04 +0000 (01:53 +0100)]
widget: Update path unconditionally in gtk_widget_reset_style()

Also, don't set the new path twice on the style context.

15 years agowidget: Don't duplicate style context updates
Benjamin Otte [Sun, 27 Mar 2011 00:52:16 +0000 (01:52 +0100)]
widget: Don't duplicate style context updates

The screen changes are done in do_screen_change(), the widget path is
updated in gtk_widget_reset_style().

15 years agowidget: Call the non-deprecated function
Benjamin Otte [Sun, 27 Mar 2011 00:51:20 +0000 (01:51 +0100)]
widget: Call the non-deprecated function

Both functions are identical, just that one isn't deprecated.

15 years agoAPI: Add gtk_widget_path_to_string()
Benjamin Otte [Sat, 26 Mar 2011 13:29:32 +0000 (14:29 +0100)]
API: Add gtk_widget_path_to_string()

Dumps the widget path into a string representation. It tries to match the CSS
style as closely as possible (Note that there might be paths that cannot be
represented in CSS).

The main use of this code is for debugging purposes, so that you can
g_print() the path or dump it in a gdb session.

15 years agowidget: Emit initial style-set signal in the same situations as GTK2
Benjamin Otte [Sat, 26 Mar 2011 22:34:45 +0000 (23:34 +0100)]
widget: Emit initial style-set signal in the same situations as GTK2

This ensures that widgets that aren't ported and rely on the style-set
signal being emitted work as well as before. They should not rely on
style-set being emitted however.

Note that this function is a no-op if the initial style has been set
already and is very cheap if it has not been set yet. It only becomes
relevant if the resulting style actually gets used.

https://bugzilla.gnome.org/show_bug.cgi?id=639584

15 years agowidget: Create the widget's style lazily
Benjamin Otte [Sat, 26 Mar 2011 22:33:39 +0000 (23:33 +0100)]
widget: Create the widget's style lazily

That way we don't have to update the style's colors all the time on
theme changes when the widget is not actually using GtkStyle.

15 years agowidget: Don't call gtk_style_attach() and gtk_style_detach() anymore
Benjamin Otte [Sat, 26 Mar 2011 20:55:35 +0000 (21:55 +0100)]
widget: Don't call gtk_style_attach() and gtk_style_detach() anymore

15 years agodocs: Make clear that gtk_widget_set_style() does not do anything
Benjamin Otte [Sat, 26 Mar 2011 20:46:50 +0000 (21:46 +0100)]
docs: Make clear that gtk_widget_set_style() does not do anything

15 years agowidget: Use a priv variable
Benjamin Otte [Sat, 26 Mar 2011 20:45:32 +0000 (21:45 +0100)]
widget: Use a priv variable

15 years agowidget: Widgets always have a style, so no need to check for NULL
Benjamin Otte [Sat, 26 Mar 2011 20:42:41 +0000 (21:42 +0100)]
widget: Widgets always have a style, so no need to check for NULL

15 years agocombobox: Don't set the menu's name twice
Benjamin Otte [Sat, 26 Mar 2011 18:22:31 +0000 (19:22 +0100)]
combobox: Don't set the menu's name twice

15 years agonotebook: Only reset style on tab labels when it actually changes
Benjamin Otte [Sat, 26 Mar 2011 16:00:36 +0000 (17:00 +0100)]
notebook: Only reset style on tab labels when it actually changes

15 years agowidget: Reshuffle code for style context getter
Benjamin Otte [Sat, 26 Mar 2011 15:07:54 +0000 (16:07 +0100)]
widget: Reshuffle code for style context getter

The intention of this patch is to make the code clearer, shorter and
most of all to avoid recreating the widget path and setting it path
twice on the style context when the style context was recreated.

15 years agowidget: Don't create the style context if not necessary
Benjamin Otte [Sat, 26 Mar 2011 14:22:11 +0000 (15:22 +0100)]
widget: Don't create the style context if not necessary

If all we want to do is update the context's screen, we don't need to
create it if it doesn't exist yet.

15 years agoRevert "Ensure GtkWidget::style-updated is emitted before first size negociation"
Benjamin Otte [Sat, 26 Mar 2011 22:52:28 +0000 (23:52 +0100)]
Revert "Ensure GtkWidget::style-updated is emitted before first size negociation"

This reverts commit b7f772eb93e8615ebf14f5bdde33bc59dd0b11bf.

The commit just poked around things and added lots of workarounds
instead of actually fixing the bug it set out to fix.

See https://bugzilla.gnome.org/show_bug.cgi?id=639584 for details.

15 years agogtk: Reset children styles when changing name
Benjamin Otte [Sat, 26 Mar 2011 13:49:24 +0000 (14:49 +0100)]
gtk: Reset children styles when changing name

Changing the name of a widget does not just change the current widget's
path, but also the path of all its children.

15 years agowidgetpath: Sanitize pos argument for iters correctly
Benjamin Otte [Sat, 26 Mar 2011 13:44:12 +0000 (14:44 +0100)]
widgetpath: Sanitize pos argument for iters correctly

The comparison done was off by one and would have caused invalid
reads or writes.

15 years agodnd: Use G_N_ELEMENTS()
Benjamin Otte [Sat, 19 Feb 2011 19:45:54 +0000 (20:45 +0100)]
dnd: Use G_N_ELEMENTS()

Now that we have wesome macros in glib 2.0, we can use them. Woohoo, GTK
2.0 will be so awesome in the future.
(Did anybody touch dnd code this millenium?)

15 years agoUpdated French translation of po-properties
Claude Paroz [Sat, 26 Mar 2011 16:14:41 +0000 (17:14 +0100)]
Updated French translation of po-properties

Contributed by Gérard Baylard, Bruno Brouard and Claude Paroz

15 years agoUpdated Swedish translation
Daniel Nylander [Sat, 26 Mar 2011 09:29:53 +0000 (10:29 +0100)]
Updated Swedish translation

15 years agoUpdate VS property sheet
Chun-wei Fan [Sat, 26 Mar 2011 03:49:53 +0000 (11:49 +0800)]
Update VS property sheet

Make GDK-Pixbuf include path more consitent with autofiscated builds

15 years agoFixed possible segmentation fault while freeing size request caches.
Tristan Van Berkom [Sun, 6 Mar 2011 08:13:32 +0000 (17:13 +0900)]
Fixed possible segmentation fault while freeing size request caches.

15 years agoCache heights-for-range-of-widths instead of height for every width.
Tristan Van Berkom [Sun, 6 Mar 2011 06:13:56 +0000 (15:13 +0900)]
Cache heights-for-range-of-widths instead of height for every width.

This patch optimizes window resizes by assuming that if a widget
has the same height at a width of 50 as with a width of 150, the
height for width 100 will also be the same.

The patch also further optimizes the cache allocator, now there
are 2 pointer arrays of up to a maximum of 5 requests, the arrays
will only be allocated if a request is ever made in that orientation
and the array will be sparse until each request is made (i.e. if a
label can only wrap to 3 lines, there will only be 3 out of a
possible 5 SizeRequest structures allocated to cache it).

15 years agoReduce memory consumption of the size request cache.
Tristan Van Berkom [Sat, 5 Mar 2011 10:29:10 +0000 (19:29 +0900)]
Reduce memory consumption of the size request cache.

This patch makes contextual height-for-width request caching
optional (the contextual cache is not allocated for widgets that
report GTK_SIZE_REQUEST_CONSTANT_SIZE).

15 years agoAdded GTK_SIZE_REQUEST_CONSTANT_SIZE to GtkSizeRequestMode
Tristan Van Berkom [Sat, 5 Mar 2011 08:49:49 +0000 (17:49 +0900)]
Added GTK_SIZE_REQUEST_CONSTANT_SIZE to GtkSizeRequestMode

The constant size request mode defines a request mode where
height-for-width geometry is unneeded, thus optimizing GTK+
by reducing the overall amount of requests that need to be
performed and cached while resizing an interface.

15 years agoUpdated Swedish translation
Daniel Nylander [Fri, 25 Mar 2011 21:30:29 +0000 (22:30 +0100)]
Updated Swedish translation

15 years agoUpdated Bulgarian translation
Alexander Shopov [Fri, 25 Mar 2011 20:28:19 +0000 (22:28 +0200)]
Updated Bulgarian translation

15 years agowindow: Use settings from screen rather than default
Florian Müllner [Fri, 25 Mar 2011 14:46:41 +0000 (15:46 +0100)]
window: Use settings from screen rather than default

gtk_settings_get_default() was used to monitor the
"gtk-application-prefers-dark-theme" setting, rather
than the GtkSettings object associated with the window's
screen.

15 years agoEnsure GtkWidget::style-updated is emitted before first size negociation
Carlos Garnacho [Thu, 24 Mar 2011 23:31:46 +0000 (00:31 +0100)]
Ensure GtkWidget::style-updated is emitted before first size negociation

Fixes Bug 639584 - initial emission of GtkWidget:style-set is
not happening.

GtkWidget was filtering out ::style-updated (and ::style-set)
emissions until the widget was realized in order to avoid often
useless updates during widget construction and placing.

This is now done instead until the widget has a parent/screen,
which ensures the initial emission happen prior to the first
size negociation, while still filtering out all early emissions
during construction.

15 years agoUpdated Korean translation
Changwoo Ryu [Fri, 25 Mar 2011 13:01:43 +0000 (22:01 +0900)]
Updated Korean translation

15 years agoUpdate translation for Afrikaans (af)
Friedel Wolff [Thu, 24 Mar 2011 21:13:33 +0000 (23:13 +0200)]
Update translation for Afrikaans (af)

15 years agoMake selectable labels work again
Matthias Clasen [Thu, 24 Mar 2011 16:44:03 +0000 (12:44 -0400)]
Make selectable labels work again

You can select something, but moving the focus somewhere else, or bringing up
the context menu makes the selection go away. This makes it impossible to
copy-paste the text.

The reason for this regression is that gtk_label_state_changed was sloppy and
assumed that it would only ever be called when a labels goes insensitive, which
is no longer the case.

The patch fixes things by explicitly checking if the widget is insensitive, and
only resetting the selection in that case, which is the same behaviour we have
for e.g. GtkEntry.

15 years agoMerge Simplified Chinese translation from branch gtk-3-0.
Aron Xu [Thu, 24 Mar 2011 16:36:19 +0000 (16:36 +0000)]
Merge Simplified Chinese translation from branch gtk-3-0.

15 years agoswitch: hardcode a smaller font size for the switch label
Cosimo Cecchi [Tue, 22 Mar 2011 18:53:21 +0000 (14:53 -0400)]
switch: hardcode a smaller font size for the switch label

This should not really be done here, but we can't override font size
from the theme just yet.

https://bugzilla.gnome.org/show_bug.cgi?id=645458

15 years agogtksettings: unset attributes set to normal from font description
Cosimo Cecchi [Tue, 22 Mar 2011 18:51:06 +0000 (14:51 -0400)]
gtksettings: unset attributes set to normal from font description

So that they do not override values coming from the theme.

Based on a patch by Carlos Garnacho.

https://bugzilla.gnome.org/show_bug.cgi?id=645458

15 years agoRevert "styleproperties: don't force replacing the font description"
Cosimo Cecchi [Tue, 22 Mar 2011 18:35:23 +0000 (14:35 -0400)]
Revert "styleproperties: don't force replacing the font description"

It turns out the bug is more complicated than I originally understood.
Not replacing the font description fields while merging here makes it
impossible for application's CSS to override fonts.

This reverts commit 89c1d93b68aaaebeb5db0dc2a58895721c6665aa.

https://bugzilla.gnome.org/show_bug.cgi?id=645458

15 years agoAdd DOAP file
Olav Vitters [Wed, 23 Mar 2011 10:54:36 +0000 (11:54 +0100)]
Add DOAP file

15 years agogtk-demo: Add placeholder text to search entry demo
Carlos Garcia Campos [Tue, 22 Mar 2011 11:47:50 +0000 (12:47 +0100)]
gtk-demo: Add placeholder text to search entry demo

15 years agoconfigure: bump version to 3.1.0
Michael Natterer [Mon, 21 Mar 2011 19:58:40 +0000 (20:58 +0100)]
configure: bump version to 3.1.0

15 years agoBug 643805 - Allow GtkExpander to resize the toplevel upon expanding/collpasing
Michael Natterer [Mon, 21 Mar 2011 19:57:43 +0000 (20:57 +0100)]
Bug 643805 - Allow GtkExpander to resize the toplevel upon expanding/collpasing

Add gtk_expander_get,set_resize_toplevel() and a "resize-toplevel"
property.

15 years agoCheck whether a resolution has been set in GtkPrintSettings
Marek Kasik [Fri, 19 Nov 2010 09:55:25 +0000 (10:55 +0100)]
Check whether a resolution has been set in GtkPrintSettings

If resolution has not been set then use default resolution from ppd.

https://bugzilla.gnome.org/show_bug.cgi?id=635254

15 years agothemingengine: don't hardcode white to draw insensitive labels shadow
Cosimo Cecchi [Mon, 21 Mar 2011 14:53:12 +0000 (10:53 -0400)]
themingengine: don't hardcode white to draw insensitive labels shadow

Use the background color instead.
I think the optimal solution would be delegating the shadow rendering to
the theme completely, and removing this in GtkThemingEngine, but for
now, this simple fix makes the dark variant more usable.

https://bugzilla.gnome.org/show_bug.cgi?id=645405

15 years agofilechooserdefault: fix a build warning
Cosimo Cecchi [Fri, 18 Mar 2011 20:28:11 +0000 (16:28 -0400)]
filechooserdefault: fix a build warning

15 years agoFix leaking calls to gdk_device_manager_list_devices()
Garrett Regier [Sat, 19 Mar 2011 16:09:27 +0000 (09:09 -0700)]
Fix leaking calls to gdk_device_manager_list_devices()

gdk_device_manager_list_devices() returns a newly allocated list.

https://bugzilla.gnome.org/show_bug.cgi?id=645234

15 years agoFix portability issues in configure
Matthias Clasen [Mon, 21 Mar 2011 14:32:49 +0000 (10:32 -0400)]
Fix portability issues in configure

Avoid using bash features unnecessarily.
Patch by Matteo Settenvini
https://bugzilla.gnome.org/show_bug.cgi?id=645057

15 years agoFree the motion hint infos in GdkDisplay
Garrett Regier [Sat, 19 Mar 2011 16:11:45 +0000 (09:11 -0700)]
Free the motion hint infos in GdkDisplay

https://bugzilla.gnome.org/show_bug.cgi?id=645235

15 years agowindow: Export theme variant to X11
Florian Müllner [Sun, 20 Mar 2011 13:37:27 +0000 (14:37 +0100)]
window: Export theme variant to X11

The metacity theme format allows to use colors from the current
GTK+ theme in window decorations. Since GTK+ now gained support
for dark theme variants, window managers using that theme format
(metacity, mutter, compiz via gtk-window-decorator) should be able
to use colors from the correct variant; so in case a variant is
requested, export it in the _GTK_THEME_VARIANT property on
toplevel windows.

https://bugzilla.gnome.org/show_bug.cgi?id=645354

15 years agoUpdated Lithuanian translation.
Gintautas Miliauskas [Mon, 21 Mar 2011 13:28:19 +0000 (14:28 +0100)]
Updated Lithuanian translation.

15 years agogail: Implement AtkObject::get_attributes() in GailEntry
Carlos Garcia Campos [Wed, 2 Mar 2011 17:17:05 +0000 (18:17 +0100)]
gail: Implement AtkObject::get_attributes() in GailEntry

And return the GtkEntry placeholder text as a new attribute.

https://bugzilla.gnome.org/show_bug.cgi?id=440963

15 years agogtkentry: Add hinting to GtkEntry
Carlos Garcia Campos [Thu, 24 Feb 2011 12:29:10 +0000 (13:29 +0100)]
gtkentry: Add hinting to GtkEntry

gtk_entry_set_placeholder_text() makes the entry display the given text
when it is empty and unfocused. Based on previous patch by Alberto
Garcia.

https://bugzilla.gnome.org/show_bug.cgi?id=440963

15 years agoUpdated Assamese translations
Amitakhya Phukan [Mon, 21 Mar 2011 07:28:18 +0000 (12:58 +0530)]
Updated Assamese translations

15 years agoUpdated Assamese translations
Amitakhya Phukan [Mon, 21 Mar 2011 07:27:50 +0000 (12:57 +0530)]
Updated Assamese translations

15 years agoUpdated Indonesian translation of gtk+ properties
Andika Triwidada [Mon, 21 Mar 2011 04:17:08 +0000 (11:17 +0700)]
Updated Indonesian translation of gtk+ properties

15 years agoUpdated Hungarian translation
Gabor Kelemen [Sat, 19 Mar 2011 22:45:36 +0000 (23:45 +0100)]
Updated Hungarian translation

15 years agoUpdated Dutch translation by Wouter Bolsterlee
Wouter Bolsterlee [Sat, 19 Mar 2011 16:58:06 +0000 (17:58 +0100)]
Updated Dutch translation by Wouter Bolsterlee

15 years agoradiobutton: exclude states we set manually from the previous state
Cosimo Cecchi [Fri, 18 Mar 2011 19:14:25 +0000 (15:14 -0400)]
radiobutton: exclude states we set manually from the previous state

https://bugzilla.gnome.org/show_bug.cgi?id=645172

15 years agoradiobutton: build the new state flags from the previous flags on click
Cosimo Cecchi [Fri, 18 Mar 2011 19:00:11 +0000 (15:00 -0400)]
radiobutton: build the new state flags from the previous flags on click

This fixes e.g. sensitivity issues with GtkRadioButton on state update.

https://bugzilla.gnome.org/show_bug.cgi?id=645172

15 years agogtk: Make region argument to gtk_widget_queue_draw_region() const
Benjamin Otte [Mon, 14 Feb 2011 18:10:39 +0000 (19:10 +0100)]
gtk: Make region argument to gtk_widget_queue_draw_region() const

15 years agoswitch: fix boundaries for the switch motion
Cosimo Cecchi [Thu, 17 Mar 2011 22:27:03 +0000 (18:27 -0400)]
switch: fix boundaries for the switch motion

We were ignoring the focus ring padding, and we were incorrectly setting
handle_x to padding.left, while the draw handler already takes padding
into account while redrawing.

https://bugzilla.gnome.org/show_bug.cgi?id=645134

15 years agonotebook: don't forget to reset the style after setting show-tabs
Cosimo Cecchi [Thu, 17 Mar 2011 21:26:15 +0000 (17:26 -0400)]
notebook: don't forget to reset the style after setting show-tabs

This fixes a regression after commit
b04f4c536aeab4281a9f0117e67accae19d691b9

15 years agoGdkDeviceManagerXI2: process send_event core events
Dan Winship [Tue, 15 Mar 2011 16:25:36 +0000 (12:25 -0400)]
GdkDeviceManagerXI2: process send_event core events

XSendEvent doesn't currently work with XI2 events, so add code to
translate core events when they have the send_event flag.

(We still don't actually select for core pointer/keyboard events, so
we will only receive send_event events that are sent with a 0
event_mask.)

https://bugzilla.gnome.org/show_bug.cgi?id=644847

15 years agotreeview: add the separator style class to the tree view separator lines
Cosimo Cecchi [Thu, 17 Mar 2011 21:08:41 +0000 (17:08 -0400)]
treeview: add the separator style class to the tree view separator lines

15 years agofilechooser: use the sidebar style class for the file chooser sidebar
William Jon McCann [Fri, 28 Jan 2011 03:00:20 +0000 (22:00 -0500)]
filechooser: use the sidebar style class for the file chooser sidebar

https://bugzilla.gnome.org/show_bug.cgi?id=642712

15 years agostylecontext: add a sidebar style class
Cosimo Cecchi [Thu, 17 Mar 2011 21:09:05 +0000 (17:09 -0400)]
stylecontext: add a sidebar style class

15 years agoset initial pane position
William Jon McCann [Fri, 28 Jan 2011 02:12:05 +0000 (21:12 -0500)]
set initial pane position

https://bugzilla.gnome.org/show_bug.cgi?id=642712

15 years agofilechooser: add the inline-toolbar style class to the bottom toolbar
Cosimo Cecchi [Thu, 17 Mar 2011 19:44:18 +0000 (15:44 -0400)]
filechooser: add the inline-toolbar style class to the bottom toolbar

15 years agostylecontext: add an inline-toolbar style class
Cosimo Cecchi [Thu, 17 Mar 2011 19:44:03 +0000 (15:44 -0400)]
stylecontext: add an inline-toolbar style class

15 years agostyleproperties: don't force replacing the font description
Cosimo Cecchi [Thu, 17 Mar 2011 18:31:57 +0000 (14:31 -0400)]
styleproperties: don't force replacing the font description

Otherwise custom fonts will always get overridden by the default stored
in GtkSettings when merging them.

https://bugzilla.gnome.org/show_bug.cgi?id=644975

15 years agonotebook: Don't set notebook style with hidden tabs
Bastien Nocera [Thu, 17 Mar 2011 17:59:46 +0000 (17:59 +0000)]
notebook: Don't set notebook style with hidden tabs

When tabs are not shown, and the notebook is used as a container,
we should not set the notebook style, otherwise the theme has no
way to know whether tabs are shown or not, and which colour to draw
the background.

https://bugzilla.gnome.org/show_bug.cgi?id=640692